//
//  SepecModel.h
//  SelectSpec
//
//  Created by 吴欧 on 20/10/21.
//  Copyright © 2020 honglutec. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

@class SepecDetailModel;

/*
 属性
 */
@interface SepecModel : NSObject

@property (nonatomic, assign) NSInteger id_sepec;
@property (nonatomic, copy)NSString *name_sepec;
@property (nonatomic, copy)NSString *price_sepec;
@property (nonatomic, retain)NSArray<SepecDetailModel *> *arr_sepec;

@end

/*
 子规格项
 */
@interface SepecDetailModel : NSObject

@property (nonatomic, copy)NSString *id_sepec;
@property (nonatomic, copy)NSString *presentid_sepec;
@property (nonatomic, copy)NSString *name_sepec;
@property (nonatomic, copy)NSString *price_sepec;
@property (nonatomic) BOOL selected;
@property (nonatomic, copy) NSString *desc;


//用于计算文字大小
@property (strong, nonatomic) UIFont *font;

@property (nonatomic, assign) CGSize contentSize;

- (instancetype)initWithName:(NSString *)name font:(UIFont *)font;

@end



// 组合选中模型
@interface compareSepecModel : NSObject

@property (nonatomic, copy) NSString *matchStr;  // 用于匹配的id
@property (nonatomic, assign) NSInteger goodspriceid;
@property (nonatomic, copy) NSString *spec_price; // 现价
@property (nonatomic, copy) NSString *org_price; // 原价

@property (nonatomic, copy) NSString *spec_pic;  // 图片
@property (nonatomic, assign) NSInteger stock; // 库存

@property (nonatomic, strong) NSArray *propertylist;
@end

